package org.darkforest.dao.dao;

import org.springframework.stereotype.Repository;

/**
 * <p>Title: 数据访问 基类 泛型 支持</p>
 *
 * <p>Description: </p>
 *
 * @version 1.0
 */

@Repository
public interface BaseDao<T, E>{

    int deleteByPrimaryKey(Integer primaryKey);

    int insert(T object);

    int insertSelective(T object);

    T selectByPrimaryKey(Integer primaryKey);

    int updateByPrimaryKeySelective(T object);

    int updateByPrimaryKey(T object);



}
